package com.dailyblue.smbms.bean;

import lombok.Data;

// smbms_user
@Data
public class User {
    private Integer id;
    private String userCode;
    private String userName;
    private String userPassword;
    private Integer gender;//性别（1:女、 2:男）
    private String birthday;
    private String phone;
    private String address;
    private Integer userRole;
    private Integer createdBy;
    private String creationDate;
    private Integer modifyBy;
    private String modifyDate;
    private Integer state;
    // 数据库不存在
    private Integer userAge;
    // 描述用户的角色信息
    private Role role;

    public User() {
    }

    public User(String userCode, String userName, String userPassword, Integer gender, String birthday, String phone, String address, Integer userRole) {
        this.userCode = userCode;
        this.userName = userName;
        this.userPassword = userPassword;
        this.gender = gender;
        this.birthday = birthday;
        this.phone = phone;
        this.address = address;
        this.userRole = userRole;
    }

    public User(Integer id, String userName, Integer gender, String birthday, String phone, String address, Integer userRole) {
        this.id = id;
        this.userName = userName;
        this.gender = gender;
        this.birthday = birthday;
        this.phone = phone;
        this.address = address;
        this.userRole = userRole;
    }
}